package com.albaba.springalibabasentinel8085.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

/**
 * @Description: TODO
 * @Author zx
 * @Date 2024/11/19 15:35
 * @Version 1.0
 */
@Service
public class SentinelService {

    @SentinelResource(value = "testA")
    public String testA(){
        return "testA";
    }

    @SentinelResource(value = "testB")
    public String testB(){
        return "testB";
    }

}
